package com.ruoyi.cbs.violation.mapper;

import java.util.List;
import com.ruoyi.cbs.violation.domain.ViolationRecord;
import com.ruoyi.cbs.violation.domain.vo.ViolationRecordReqVO;

/**
 * 承包商违章记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-11-15
 */
public interface ViolationRecordMapper 
{
    /**
     * 查询承包商违章记录
     * 
     * @param id 承包商违章记录主键
     * @return 承包商违章记录
     */
    public ViolationRecord selectViolationRecordById(Long id);

    /**
     * 查询承包商违章记录列表
     * 
     * @param violationRecord 承包商违章记录
     * @return 承包商违章记录集合
     */
    public List<ViolationRecord> selectViolationRecordList(ViolationRecordReqVO violationRecord);

    /**
     * 新增承包商违章记录
     * 
     * @param violationRecord 承包商违章记录
     * @return 结果
     */
    public int insertViolationRecord(ViolationRecord violationRecord);

    /**
     * 修改承包商违章记录
     * 
     * @param violationRecord 承包商违章记录
     * @return 结果
     */
    public int updateViolationRecord(ViolationRecord violationRecord);

    /**
     * 删除承包商违章记录
     * 
     * @param id 承包商违章记录主键
     * @return 结果
     */
    public int deleteViolationRecordById(Long id);

    /**
     * 批量删除承包商违章记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteViolationRecordByIds(Long[] ids);
}
